package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 类ProfitLevelEditBo.java的实现描述：更新代理信息入参
 *
 * @author zach
 * @Date :2020-06-29 10:54.
 */
@Getter
@Setter
@ApiModel("更新代理信息入参")
public class ProfitLevelEditBo {

    @NotNull
    @Max(value = 100)
    @ApiModelProperty(value = "分润值",required = true)
    private BigDecimal value;

    @NotNull
    @ApiModelProperty(value = "代理等级",required = true)
    private Integer level;

    /*@NotNull
    @ApiModelProperty(value = "代理名称",required = true)
    private String name;
*/
    @NotNull
    @ApiModelProperty(value = "升级门槛")
    @Min(value = 0)
    private BigDecimal threshold;
}
